package com.jdym.back.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jdym.back.entity.Menu;
import com.jdym.back.entity.vo.ManageRoleMenu;
import com.jdym.back.mapper.MenuMapper;
import com.jdym.back.mapper.MenuMapper;
import com.jdym.back.service.MenuService;
import com.jdym.back.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-10-20
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {

    @Autowired
    MenuMapper menuMapper;

    @Override
    public List<Menu> findYijiMenu() {
        return menuMapper.findYijiMenu();
    }

    @Override
    public List<ManageRoleMenu> getMenus(String mUser) {
       return menuMapper.getMenus(mUser);
    }

    @Override
    public List<Menu> findById(int id) {
        return menuMapper.findById(id);
    }
}
